package com.pet.shop.controller.order;

import com.pet.shop.controller.BaseController;
import com.pet.shop.entity.order.Order;
import com.pet.shop.service.IBaseService;
import com.pet.shop.service.order.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/web/order")
public class OrderController extends BaseController<Order>{

    @Autowired
    private IOrderService orderService;

    @Override
    public IBaseService<Order> getBaseService() {
        return orderService;
    }

    @RequestMapping("list")
    public ModelAndView list(HttpServletRequest request){
        return new ModelAndView("shopping/orderList");
    }
}
